<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="MvcContrib.FluentHtml.ModelViewPage<Universum.Model.Domain.QuestionIT.Question>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Universum - Ask a question
</asp:Content>
<asp:Content ID="BreadcrumbsContent" ContentPlaceHolderID="Breadcrumbs" runat="server">
	<%= Html.Breadcrumb().Home().Append<QuestionItController>(it=>it.Index(1),"Question IT").AppendText("Edit question: "+Model.Title).End() %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

   

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

      <% using (Html.BeginForm<QuestionItController>(controller=>controller.EditQuestion(null))){%>

        <fieldset>
            <legend> <h2>What is your question ?</h2></legend>
           
            <p>
            <%= this.TextBox( model => model.Title).Label("Title") %>
               
                <%= this.ValidationMessage( model => model.Title, "*") %>
            </p>
            <p>
            <%= this.TextArea( model => model.Text).Label("Text") %>
               
                <%= this.ValidationMessage( model => model.Text, "*") %>
            </p>
           
            <p>
               <%=this.SubmitButton("Update")%>
            </p>
        </fieldset>

    <% } %>
   

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptPlaceHolder" runat="server">
<% Html.RenderPartial("EditorAndDateUserControl"); %>
</asp:Content>

